//
//  UIScrollView+QTEmpty.h
//  Pods
//
//  Created by 张俊博 on 16/8/23.
//
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol EmptyDataSource <NSObject>
@optional

- (UIImage *)imageForEmptyData:(UIScrollView *)scrollView;

- (UIColor *)backgroundColorForEmptyData:(UIScrollView *)scrollView;

- (UIView *)customViewForEmptyData:(UIScrollView *)scrollView;

@end

@interface UIScrollView (QTEmpty)

@property (nonatomic, weak) IBOutlet id <EmptyDataSource> emptyDataSource;
@property (nonatomic, readonly, getter = isEmptyDataVisible) BOOL emptyDataVisible;


- (void)reloadEmptyData;

@end

NS_ASSUME_NONNULL_END